package com.ruoyix.generator.domain.bo;

import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.Date;

import com.ruoyix.common.core.domain.BaseEntity;

/**
 * 模块管理业务对象 gen_module
 *
 * @author ruoyi
 * @date 2023-11-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class GenModuleBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 模块编码
     */
    @NotBlank(message = "模块编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String moduleCode;

    /**
     * 模块名称
     */
    @NotBlank(message = "模块名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String moduleName;

    /**
     * 模块描述
     */
    private String description;

    /**
     * 主类全名
     */
    private String mainClassName;

    /**
     * 当前版本
     */
    private String currentVersion;

    /**
     * 升级信息
     */
    private String upgradeInfo;

    /**
     * 状态（0正常 1删除 2停用）
     */
    private String status;

    /**
     *
     */
    @NotBlank(message = "模块路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modulePath;

    /**
     *
     */
    private String moduleTemplate;

    /**
     * 备注信息
     */
    private String remarks;


}
